package com.ly.base.generic;

import java.util.List;

/**
 * @Classname FileOperator
 * @Description TODO
 * @Date 2020/4/12 14:13
 * @Author 冷心影翼
 */
public class Main {

    public static void main(String[] args) {
        MyGeneric<String> myGeneric = new MyGeneric<>();
    }

    public void f1(List<? extends AbstractGeneric> list) {
//        list.add(new GenericSuper<String>());
    }

    public void f2(List<? super AbstractGeneric> list) {
        list.add(new Generic<Integer>());
    }
}
